home *** CD-ROM | disk | FTP | other *** search
- on animSyncRain startmem, endmem, whatSprite, whatsound, whenSound
- global animSpeed
- puppetSprite(whatSprite, 1)
- set loopCounter to 0
- if (whenSound = 1) and (string(whatsound) <> EMPTY) then
- puppetSound(1, "thdr4")
- end if
- repeat with x = the number of member startmem to the number of member endmem
- set loopCounter to loopCounter + 1
- if the platform = "Macintosh,PowerPC" then
- wait(animSpeed + 8)
- end if
- if loopCounter > 1 then
- set the memberNum of sprite whatSprite to the number of member startmem + loopCounter
- else
- if loopCounter = 1 then
- set the memberNum of sprite whatSprite to the number of member startmem
- end if
- end if
- updateStage()
- end repeat
- set loopCounter to 0
- repeat with x = the number of member startmem to the number of member endmem
- set loopCounter to loopCounter + 1
- wait(animSpeed + 8)
- if loopCounter > 1 then
- set the memberNum of sprite whatSprite to the number of member startmem + loopCounter
- else
- if loopCounter = 1 then
- set the memberNum of sprite whatSprite to the number of member startmem
- end if
- end if
- updateStage()
- end repeat
- puppetSound(0)
- puppetSprite(6, 0)
- end
-